import '@/styles/common.css'
// 全局指令注册
import { directivePlugin } from '@/directives/index'
import {componentPlugin} from "@/components/index"

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'

const app = createApp(App)
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

app.use(directivePlugin)
app.use(componentPlugin)
app.use(pinia)
app.use(router)

app.mount('#app')
